<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<tr id="weightTr_gen">
	<td class="priceTd">&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td class="priceTd2" style="color: red;">重量段说明</td>
	<c:forEach items="${requestScope.weights}" var="weight">
	<td class="priceTd"><input type="text" value="${weight}" name="allPrices[0]" size="5" readonly style="background-color: #F6D357;" /></td>
	</c:forEach>
	<input type="hidden" name="allPrices" value="" /><!-- 导入价格需要 -->
</tr>
<tr>
	<td class="priceTd">&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td class="priceTd2">货物类型</td>
	<c:forEach items="${requestScope.weights}" var="weight" varStatus="n">
		<td class="priceTd">
			<c:if test="${n.index<10}"><input type="text" name="allPrices[1]" value="DOC" size="5" readonly style="background-color: #F6D357;" /></c:if>
			<c:if test="${n.index >= 10}"><input type="text" name="allPrices[1]" value="WPX" size="5" readonly style="background-color: #F6D357;" /></c:if>
		</td>
	</c:forEach>
	<input type="hidden" name="allPrices" value="" /><!-- 导入价格需要 -->
</tr>
<tr>
	<td class="priceTd">&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td class="priceTd2">最低重量</td>
	<c:forEach items="${requestScope.s_weights}" var="sweight">
		<td class="priceTd"><input name="allPrices[2]" type="text" value="${sweight}" readonly size="5" style="background-color: #F6D357;"/></td>
	</c:forEach>
	<input type="hidden" name="allPrices" value="" /><!-- 导入价格需要 -->
</tr>
<tr>
	<td class="priceTd">&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td class="priceTd2">最高重量</td>
	<c:forEach items="${requestScope.b_weights}" var="bweight">
		<td class="priceTd"><input name="allPrices[3]" type="text" value="${bweight}" readonly size="5" style="background-color: #F6D357;"/></td>
	</c:forEach>
	<input type="hidden" name="allPrices" value="" /><!-- 导入价格需要 -->
</tr>
<tr>
	<td class="priceTd">&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td class="priceTd2">计算方式</td>
	<c:forEach items="${requestScope.weights}" var="weight" varStatus="n">
		<td class="priceTd">
			<c:if test="${n.index<50}"><input type="hidden" name="allPrices[4]" value="1"/>金额</c:if>
			<c:if test="${n.index>=50}"><input type="hidden" name="allPrices[4]" value="2"/>单价</c:if>
		</td>
	</c:forEach>
	<input type="hidden" name="allPrices" value="" /><!-- 导入价格需要 -->
</tr>
<tr>
	<td class="priceTd">&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td class="priceTd2">单位重量</td>
	<c:forEach items="${requestScope.weights}" varStatus="n">
		<td class="priceTd"><input name="allPrices[5]" type="text" value="1" readonly size="5" style="background-color: #F6D357;"/></td>
	</c:forEach>
	<input type="hidden" name="allPrices" value="" /><!-- 导入价格需要 -->
</tr>
<tr>
	<td class="priceTd">&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td class="priceTd2"><div style="width: 100px;color: red;vertical-align: middle">上升比列</div></td>
	<c:forEach items="${requestScope.weights}" var="weight">
	<td class="priceTd"><input type="text" name="amplification_weights" value="1.3" style="width: 60px;" /></td>
	</c:forEach>
</tr>
<c:forEach items="${requestScope.countryCodes}" var="countryCode" varStatus="n">
<tr>
	<td class="priceTd"><div style="width: 65px;padding:4px;"><input type="text" name="amplification_countrys" value="1" style="width: 60px;" /></div></td>
	<td class="priceTd2">${countryCode}</td>
	<c:forEach items="${requestScope.weights}" var="weight" varStatus="i">
	<td class="priceTd">
		<div style="width: 65px;padding:1px; ">
		<input name="allPrices[${n.index + 6 }]" type="text" value="<fmt:formatNumber value="${requestScope.prices[0][n.index][i.index]}" pattern="##" minFractionDigits="1" ></fmt:formatNumber>" readonly size="5" style="background-color: #F6D357;"/>
		</div>
		<input type="hidden" name="sourcechannelNumList[${n.index}]" value="${requestScope.prices[1][n.index][i.index]}" />
	</td>
	</c:forEach>
	<input type="hidden" name="sourcechannelNumList" value=""/><!-- 获取来源渠道需要 -->
	<input type="hidden" name="allPrices" value="" /><!-- 导入价格需要 -->
</tr>
</c:forEach>